package com.hundsun.cprs.yyt.service.common.service.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 资金渠道配置
 * @author linrl
 * @date 2018年1月2日 下午4:06:42
 */
@Component
public class FundBankConfig {
	
	@Value("${fund.bank.bankNo:9999}")
	private String bankNo;
	@Value("${fund.bank.bankProCode:mock}")
	private String bankProCode;
	@Value("${fund.bank.channelBankNo:9999}")
	private String channelBankNo;
	@Value("${fund.bank.processType:O}")
	private String processType;
	
	public String getBankNo() {
		return bankNo;
	}
	public void setBankNo(String bankNo) {
		this.bankNo = bankNo;
	}
	public String getBankProCode() {
		return bankProCode;
	}
	public void setBankProCode(String bankProCode) {
		this.bankProCode = bankProCode;
	}
	public String getChannelBankNo() {
		return channelBankNo;
	}
	public void setChannelBankNo(String channelBankNo) {
		this.channelBankNo = channelBankNo;
	}
	public String getProcessType() {
		return processType;
	}
	public void setProcessType(String processType) {
		this.processType = processType;
	}
	
	/**
	 * 判断是否为模拟银行渠道
	 * @return
	 */
	public boolean isMockBank(){
		return "9999".equals(getBankNo());
	}
}
